#ifndef HOME_H
#define HOME_H

#include <QWidget>
#include <QFile>
#include <QPainter>
#include <QPixmap>
#include <QByteArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QDebug>
namespace Ui {
class Home;
}

class Home : public QWidget
{
    Q_OBJECT

public:
    explicit Home(QWidget *parent = 0);
    ~Home();

private:
    Ui::Home *ui;
    void paintEvent(QPaintEvent *);
    void reportData(QString);

public slots:
       void modeChange(QString);
       void onPushButtonClicked();
       void sendRefresh();


signals:
    void sendmessage(QByteArray);

};

#endif // HOME_H
